/*
 * Created by IntelliJ IDEA.
 * User: amrk
 * Date: 14/02/2005
 * Time: 01:37:02
 */
package com.talios.jira.idea.actions;

import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.actionSystem.DataConstants;
import com.intellij.openapi.project.Project;
import com.talios.jira.feeds.UnresolvedIssuesFeedBuilder;
import com.talios.jira.idea.JiraConfigurationComponent;

public class UnresolvedIssuesAction extends JIRAAction {
    public void actionPerformed(AnActionEvent event) {
        final Project project = (Project) event.getDataContext().getData(DataConstants.PROJECT);
        JiraConfigurationComponent config = project.getComponent(JiraConfigurationComponent.class);
        config.openSearch(new UnresolvedIssuesFeedBuilder(project), false);
    }

}